package com.ruoyi.quartz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户排名表对象 app_rank_user
 *
 * @author susu
 * @date 2024-08-22
 */
public class AppRank extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 用户ID
     */
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String userName;

    /**
     * 头像
     */
    @Excel(name = "头像")
    private String avatar;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    private Long deptId;

    /**
     * 部门名称
     */
    @Excel(name = "部门名称")
    private String deptName;


    private Long teamId;

    private String teamName;

    /**
     * 排名
     */
    @Excel(name = "排名")
    private Long rank;

    /**
     * 累计天数
     */
    @Excel(name = "累计天数")
    private Long daySum;

    /**
     * 累计积分
     */
    @Excel(name = "累计积分")
    private Long gradeSum;

    /**
     * 累计兑换步数
     */
    @Excel(name = "累计兑换步数")
    private Long stepSum;

    /**
     * 记录日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date rowDate;

    public Long getTeamId() {
        return teamId;
    }

    public void setTeamId(Long teamId) {
        this.teamId = teamId;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setRank(Long rank) {
        this.rank = rank;
    }

    public Long getRank() {
        return rank;
    }

    public void setDaySum(Long daySum) {
        this.daySum = daySum;
    }

    public Long getDaySum() {
        return daySum;
    }

    public void setGradeSum(Long gradeSum) {
        this.gradeSum = gradeSum;
    }

    public Long getGradeSum() {
        return gradeSum;
    }

    public void setStepSum(Long stepSum) {
        this.stepSum = stepSum;
    }

    public Long getStepSum() {
        return stepSum;
    }

    public void setRowDate(Date rowDate) {
        this.rowDate = rowDate;
    }

    public Date getRowDate() {
        return rowDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("avatar", getAvatar())
                .append("deptId", getDeptId())
                .append("deptName", getDeptName())
                .append("rank", getRank())
                .append("daySum", getDaySum())
                .append("gradeSum", getGradeSum())
                .append("stepSum", getStepSum())
                .append("createTime", getCreateTime())
                .append("rowDate", getRowDate())
                .toString();
    }
}
